import Component from './Component'
export default Component;

/*
Router.mount=application.mount=function(){
    let comp=arguments[arguments.length-1];
    let path=arguments[0];
    if (comp){
        if (comp instanceof Component) {
            let mountPath=path || comp.path || "/"+comp.name;
            console.log(`${this.component?this.component.name:this.name} <- ${comp.name}`);
            comp.router.parent=this;
            comp.router.mountPath=mountPath;
            //console.log("mount",mountPath,comp.name);
            let midware=[];
            if (arguments.length>2){
                midware=Array.from(arguments).slice(1,-1);
            }
            return this.use(mountPath,...midware, comp.router);
        }else{
            return this.use(...arguments);
        }
    }else{
        throw new Error("Null Component: "+comp);
    }
};*/
